Global Index
HTML5 JS API Index > SVG Tutorials & Specs

SVGStylable

Extended by SVGSVGElement, SVGGElement, SVGDefsElement, SVGDescElement, SVGTitleElement, SVGSymbolElement, SVGUseElement, SVGImageElement, SVGSwitchElement, SVGPathElement, SVGRectElement, SVGCircleElement, SVGEllipseElement, SVGLineElement, SVGPolylineElement, SVGPolygonElement, SVGTextContentElement, SVGGlyphRefElement, SVGMarkerElement, SVGGradientElement, SVGStopElement, SVGPatternElement, SVGClipPathElement, SVGMaskElement, SVGFilterElement, SVGFilterPrimitiveStandardAttributes, SVGAElement, SVGAnimateElement, SVGAnimateColorElement, SVGFontElement, SVGGlyphElement, SVGMissingGlyphElement, SVGForeignObjectElement, SVGSVGElement, SVGGElement, SVGDefsElement, SVGDescElement, SVGTitleElement, SVGSymbolElement, SVGUseElement, SVGImageElement, SVGSwitchElement, SVGPathElement, SVGRectElement, SVGCircleElement, SVGEllipseElement, SVGLineElement, SVGPolylineElement, SVGPolygonElement, SVGTextContentElement, SVGGlyphRefElement, SVGMarkerElement, SVGGradientElement, SVGStopElement, SVGPatternElement, SVGClipPathElement, SVGMaskElement, SVGFilterElement, SVGFilterPrimitiveStandardAttributes, SVGAElement, SVGAnimateElement, SVGAnimateColorElement, SVGFontElement, SVGGlyphElement, SVGMissingGlyphElement, SVGForeignObjectElement
Properties
SVGAnimatedString
className
Corresponds to attribute ‘class’ on the given element.
CSSStyleDeclaration
style
Corresponds to attribute ‘style’ on the given element. If the user agent does not support styling with CSS, then this attribute must always have the value of null.
Operations
CSSValue
getPresentationAttribute(DOMString name)
Returns the base (i.e., static) value of a given presentation attribute as an object of type CSSValue. The returned object is live; changes to the objects represent immediate changes to the objects to which the CSSValue is attached. Note: The getPresentationAttribute method is deprecated, and may be dropped from future versions of the SVG specification.